#include "progress.h"
#include <fstream>
#include <gtkmm/main.h>

using namespace std;

ifstream data("D.tmp");

int main(int argc, char *argv[])
{

	Gtk::Main kit(argc, argv);

	MainWindow window;
	
	string title = "Downloading ";
  	if(argc == 2)
  	{	string str = argv[1];
  		unsigned pos = str.rfind("/");
  		title.append(str,pos+1,string::npos);
  	}
    window.set_title(title);
    
	Gtk::Main::run(window);

	data.close();
	return 0;
}
